home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / comp_lan / 85_febr / fortrn.5 < prev    next >
Text File  |  1988-07-25  |  384b  |  15 lines

  1.  
  2.                             Listing 5
  3.                       C Instead of FORTRAN?
  4.  
  5.  
  6.         double cos(); /* use cos() function for calculation */
  7.         double y;     /* destination for answer */
  8.         ...
  9.         y = bisect(cos,0.0,3.14159,.0001);
  10.                       /* 
  11.                      bisect cos() function
  12.                  interval [0.0,3.14159]
  13.                  zero tolerance .0001
  14.                   */ 
  15.